package com.ssm.service.serviceImpl;

import com.am.base.ServiceImplBase;
import com.ssm.bean.Town;
import com.ssm.dao.TownMapper;
import com.ssm.service.TownService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TownServiceImpl extends ServiceImplBase<Town, TownMapper> implements TownService {
    @Autowired
    private TownMapper townMapper;
    @Override
    public List<Town> getByDiPk(Integer diPk){
        return townMapper.selectByFkDiPk(diPk);
    }
}
